package com.ruige.data.config;

import org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSource;

/**
 * @author shenyu
 * @Description
 * @create 2020-3-6
 */
public class MyAbstractRoutingDataSource extends AbstractRoutingDataSource {

    @Override
    protected Object determineCurrentLookupKey() {
        String typeKey = DataSourceContextHolder.getDataSourceType();
        return typeKey;
    }

}
